package com.googlecode.gwt.test.plugin.editors;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

public class MacroResource {
	private Map<String, File> macrosFile;
	private Map<String, Integer> macrosLine;
	private HashMap<String, String> macrosComment;

	public int getMacrosLine(String macroName) {
		return macrosLine.get(macroName);
	}

	public void addMacrosLine(String macroName, int macrosLine) {
		this.macrosLine.put(macroName, macrosLine);
	}

	public MacroResource() {
		macrosFile = new HashMap<String, File>();
		macrosLine = new HashMap<String, Integer>();
		macrosComment = new HashMap<String, String>();
	}

	public void addMacro(String macroName, File f) {
		macrosFile.put(macroName, f);
	}

	public File getFileOfMacro(String macroName) {
		return macrosFile.get(macroName);
	}

	public void addMacrosComment(String macroName, String comments) {
		macrosComment.put(macroName, comments);

	}

	public String getMacroComment(String macroName) {
		return macrosComment.get(macroName);
	}
}
